using System;
using System.Collections.Generic;
using System.Windows.Forms;
using DevExpress.LookAndFeel;

using Common;

namespace CNCSoft.ErpApps.TMS
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //DevExpress.Skins.SkinManager.EnableFormSkins();
            //DevExpress.UserSkins.OfficeSkins.Register();
            //DevExpress.UserSkins.BonusSkins.Register();
            //UserLookAndFeel.Default.SetSkinStyle("DevExpress Style");
            
            //Neu co truyen tham so file Connect thi lay, con khong thi lay dong thu 3 trong file LocalInformation
            try
            {   
                if (args.Length == 0)
                    Application.Run(new FormMain("application.properties"));
                else
                    Application.Run(new FormMain(args[0]));
            }
            catch (Exception ex) { MessageBox.Show(ex.Source + ": " + ex.Message); };
        }
    }
}